package com.weishuang.monitor.leader.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.NumberFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 服务器磁盘信息
 * </p>
 *
 * @author weishuang
 * @since 2021-03-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ServerDiskInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "磁盘唯一ID不能为空！")
    @TableId
    private String diskUuid;

    /**
     * 服务器信息ID
     */
    private String sysId;

    /**
     * 磁盘名称
     */
    @NotBlank(message = "磁盘名称不能为空！")
    private String diskName;

    /**
     * 磁盘空间
     */
    private Long diskSpace;

    /**
     * 磁盘剩余空间
     */
    private Long diskSpaceFree;

    private String diskMount;

    private String diskLabel;

    private String diskType;

    private String diskDescription;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "监测时间不能为空！")
    private Date updatedTime;


}
